<?php

/**
 * 表字段
 */
Route::get('model_manage/table_fields', ['as'=> 'model_manage.table_fields.index', 'uses' => 'ModelManage\TableFieldController@index']);
Route::post('model_manage/table_fields', ['as'=> 'model_manage.table_fields.store', 'uses' => 'ModelManage\TableFieldController@store']);
Route::get('model_manage/table_fields/create', ['as'=> 'model_manage.table_fields.create', 'uses' => 'ModelManage\TableFieldController@create']);
Route::put('model_manage/table_fields/{table_fields}', ['as'=> 'model_manage.table_fields.update', 'uses' => 'ModelManage\TableFieldController@update']);
Route::patch('model_manage/table_fields/{table_fields}', ['as'=> 'model_manage.table_fields.update', 'uses' => 'ModelManage\TableFieldController@update']);
Route::delete('model_manage/table_fields/{table_fields}', ['as'=> 'model_manage.table_fields.destroy', 'uses' => 'ModelManage\TableFieldController@destroy']);
Route::get('model_manage/table_fields/{table_fields}', ['as'=> 'model_manage.table_fields.show', 'uses' => 'ModelManage\TableFieldController@show']);
Route::get('model_manage/table_fields/{table_fields}/edit', ['as'=> 'model_manage.table_fields.edit', 'uses' => 'ModelManage\TableFieldController@edit']);


// 加载视图
Route::get('model_manage/table_fields/json_schema/view', ['as'=> 'model_manage.table_fields.json_schema.view', 'uses' => 'ModelManage\TableFieldController@getSchemaView']);